package zengqiang.day05

fun main(args: Array<String>) {
    val list= listOf<String>("z","g","r")
    println(list.max())//最大值
    println(list.min())//最小值
    val list1= listOf<P1>(P1("张三年",20), P1("李四",30))
    list1.maxBy { it.age }
    list1.minBy { it.name }
}